#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <QString>
#include <QMessageBox>
namespace Ui {
class login;
}

class login : public QWidget
{
    Q_OBJECT

public:
    explicit login(QWidget *parent = nullptr);
    ~login();

private slots:
    void on_login_ok_clicked();

private:
    Ui::login *ui;
    QSqlDatabase login_db;
    QString loginName;
    QString logingID;
    QString loginPsd;
    QString loginPsd_2;
    QString loginIdentity;
    QString cmd;//数据库命令
    QString id_db;
};

#endif // LOGIN_H
